How can a simple Spring Boot app (local filesystem listing REST API) be made thread-safe

welcome to shbcf.ru